extends Node


func play(audio:AudioStream,single=false)->void:
	if !audio:return
	if single:stop() 

	# 找到空闲播放器
	for player:AudioStreamPlayer  in get_children():
		if player.playing:continue
		player.stream=audio
		player.play()
		break

func stop()->void:
	for player:AudioStreamPlayer  in get_children():
		player.stop()
